set ws=WScript.CreateObject("WScript.Shell")
ws.run "powershell -WindowStyle Hidden -c ""Get-NetAdapter 'vEthernet (WSL)' | Get-NetIPAddress | Remove-NetIPAddress -Confirm:$False; New-NetIPAddress -IPAddress 192.168.50.1 -PrefixLength 24 -InterfaceAlias 'vEthernet (WSL)'; Get-NetNat | ? Name -Eq WSLNat | Remove-NetNat -Confirm:$False; New-NetNat -Name WSLNat -InternalIPInterfaceAddressPrefix 192.168.50.0/24;""" ,0,true
ws.run "netsh interface portproxy delete v4tov4 listenport=80 listenaddress=127.0.0.1" ,0,true
ws.run "netsh interface portproxy add v4tov4 listenport=80 listenaddress=0.0.0.0 connectport=80 connectaddress=192.168.50.2",0,true